﻿using System;
using Newtonsoft.Json;

namespace ESoft.Core.Common.Util
{
    public static class JsonHelper
    {
        public static T Deserialize<T>(string value) {
            return Newtonsoft.Json.JsonConvert.DeserializeObject<T>(value);
        }

        public static string serialize<T>(T value)
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(value);
        }
    }
}
